package fr.afcepf.ai85.ent;

// Generated 21 mars 2013 17:20:56 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DateAbsencePointage generated by hbm2java
 */
@Entity
@Table(name = "date_absence_pointage", catalog = "gepeto_db")
public class DateAbsencePointage implements java.io.Serializable {

	private Integer idDateAbs;
	private TypeActivite typeActivite;
	private Eleve eleve;
	private InscriptionPeriscolaire inscriptionPeriscolaire;
	private Encadrant encadrant;
	private Date dateAbs;
	private String motifAbssence;
	private Boolean absenceJustifiee;

	public DateAbsencePointage() {
	}

	public DateAbsencePointage(TypeActivite typeActivite, Eleve eleve,
			InscriptionPeriscolaire inscriptionPeriscolaire, Encadrant encadrant) {
		this.typeActivite = typeActivite;
		this.eleve = eleve;
		this.inscriptionPeriscolaire = inscriptionPeriscolaire;
		this.encadrant = encadrant;
	}

	public DateAbsencePointage(TypeActivite typeActivite, Eleve eleve,
			InscriptionPeriscolaire inscriptionPeriscolaire,
			Encadrant encadrant, Date dateAbs, String motifAbssence,
			Boolean absenceJustifiee) {
		this.typeActivite = typeActivite;
		this.eleve = eleve;
		this.inscriptionPeriscolaire = inscriptionPeriscolaire;
		this.encadrant = encadrant;
		this.dateAbs = dateAbs;
		this.motifAbssence = motifAbssence;
		this.absenceJustifiee = absenceJustifiee;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_DATE_ABS", unique = true, nullable = false)
	public Integer getIdDateAbs() {
		return this.idDateAbs;
	}

	public void setIdDateAbs(Integer idDateAbs) {
		this.idDateAbs = idDateAbs;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ACTIVITE", nullable = false)
	public TypeActivite getTypeActivite() {
		return this.typeActivite;
	}

	public void setTypeActivite(TypeActivite typeActivite) {
		this.typeActivite = typeActivite;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ELEVE", nullable = false)
	public Eleve getEleve() {
		return this.eleve;
	}

	public void setEleve(Eleve eleve) {
		this.eleve = eleve;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_INSCRIPTION", nullable = false)
	public InscriptionPeriscolaire getInscriptionPeriscolaire() {
		return this.inscriptionPeriscolaire;
	}

	public void setInscriptionPeriscolaire(
			InscriptionPeriscolaire inscriptionPeriscolaire) {
		this.inscriptionPeriscolaire = inscriptionPeriscolaire;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ENCADRANT", nullable = false)
	public Encadrant getEncadrant() {
		return this.encadrant;
	}

	public void setEncadrant(Encadrant encadrant) {
		this.encadrant = encadrant;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATE_ABS", length = 10)
	public Date getDateAbs() {
		return this.dateAbs;
	}

	public void setDateAbs(Date dateAbs) {
		this.dateAbs = dateAbs;
	}

	@Column(name = "MOTIF_ABSSENCE", length = 30)
	public String getMotifAbssence() {
		return this.motifAbssence;
	}

	public void setMotifAbssence(String motifAbssence) {
		this.motifAbssence = motifAbssence;
	}

	@Column(name = "ABSENCE_JUSTIFIEE")
	public Boolean getAbsenceJustifiee() {
		return this.absenceJustifiee;
	}

	public void setAbsenceJustifiee(Boolean absenceJustifiee) {
		this.absenceJustifiee = absenceJustifiee;
	}

}
